// 配置集合的结构
const {
    Schema,
    model
} = require('mongoose')

const claimsSchema = new Schema({
    name: String,
    price: String,
    accidentTime: String,
    applyTime: String,
    handleTime: String,
    state: {
        type: String,
        default: 0
    },
    images: Array,
    reason: String,
    // ordersId: {
    //     type: Schema.Types.ObjectId,
    //     ref: "ordersModel"
    // },
    delete: {
        type: Boolean,
        default: false
    },
})

const claimsModel = model('claimsModel', claimsSchema, 'claims');
module.exports.claimsModel = claimsModel;